package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Classname DishFlavorsMapper
 * @Description TODO
 * @Date 2025/2/17 19:59
 * @Created by xxx
 */
@Mapper
public interface DishFlavorsMapper {
    void insertBatch(List<DishFlavor> flavors);

    void deleteByDishIds(List<Long> ids);

    @Select("SELECT * FROM dish_flavor WHERE dish_id = #{id}")
    List<DishFlavor> getByDishId(Long id);
}
